package com.sxbbc.common.core.entity.jz;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 商家红包充值记录表
 * </p>CREATE TABLE `b_red_money_detail` (
 *   `id` int(10) NOT NULL AUTO_INCREMENT,
 *   `red_id` int(10) DEFAULT NULL COMMENT 'activity_red_packet的ID',
 *   `pay_code` varchar(255) COLLATE utf8mb4_bin DEFAULT NULL COMMENT '流水号',
 *   `isout` int(10) DEFAULT NULL COMMENT '收支 1收 0支',
 *   `original` decimal(18,2) DEFAULT NULL COMMENT '原始金额',
 *   `cost` decimal(18,2) DEFAULT NULL COMMENT '本次操作金额',
 *   `last` decimal(18,2) DEFAULT NULL COMMENT '最后金额',
 *   `target_id` int(11) DEFAULT '1' COMMENT '操作或领取用户的ID',
 *   `create_time` datetime DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '充值时间',
 *   PRIMARY KEY (`id`)
 * ) ENGINE=InnoDB AUTO_INCREMENT=12 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_bin COMMENT='商家红包充值记录表';
 *
 * @author leehao
 * @since 2019-06-05
 */
public class BRedMoneyDetail implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private Integer redId;

    private String payCode;

    private Integer isout;

    private BigDecimal original;

    private BigDecimal cost;

    private BigDecimal last;

    private Integer targetId;

    private Date createTime;

    public BRedMoneyDetail() {
    }

    public BRedMoneyDetail(Integer redId, String payCode, Integer isout,
                           BigDecimal original, BigDecimal cost, BigDecimal last, Integer targetId) {
        this.redId = redId;
        this.payCode = payCode;
        this.isout = isout;
        this.original = original;
        this.cost = cost;
        this.last = last;
        this.targetId = targetId;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getRedId() {
        return redId;
    }

    public void setRedId(Integer redId) {
        this.redId = redId;
    }

    public String getPayCode() {
        return payCode;
    }

    public void setPayCode(String payCode) {
        this.payCode = payCode;
    }

    public Integer getIsout() {
        return isout;
    }

    public void setIsout(Integer isout) {
        this.isout = isout;
    }

    public BigDecimal getOriginal() {
        return original;
    }

    public void setOriginal(BigDecimal original) {
        this.original = original;
    }

    public BigDecimal getCost() {
        return cost;
    }

    public void setCost(BigDecimal cost) {
        this.cost = cost;
    }

    public BigDecimal getLast() {
        return last;
    }

    public void setLast(BigDecimal last) {
        this.last = last;
    }

    public Integer getTargetId() {
        return targetId;
    }

    public void setTargetId(Integer targetId) {
        this.targetId = targetId;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
}
